package com.ruiyi.adrobot.beans;

import org.springframework.data.annotation.Id;

import java.util.LinkedList;
import java.util.List;

/**
 * 账号信息索引表
 */
public class AccountInfo {
    @Id
    private Integer fun;
    private List<Account> accounts = new LinkedList<>();

    public AccountInfo() {
    }

    public AccountInfo(Integer fun) {
        this.fun = fun;
    }

    public List<Account> getAccounts() {
        return accounts;
    }

    public void setAccounts(List<Account> accounts) {
        this.accounts = accounts;
    }

    public Integer getFun() {
        return fun;
    }

    public void setFun(Integer fun) {
        this.fun = fun;
    }

    public static class Account {
        private String userName;
        private String pwd;
        private String createDate;
        private String imei;
        private Boolean virtual; // 便于快速查询
        private String model; // 便于根据型号查询设备
        private String excuteSimCode; // 仅用于传值

        public String getExcuteSimCode() {
            return excuteSimCode;
        }

        public void setExcuteSimCode(String excuteSimCode) {
            this.excuteSimCode = excuteSimCode;
        }

        public Account() {
        }

        public Account(String userName, String pwd, String createDate, String imei, Boolean virtual, String model) {
            this.userName = userName;
            this.pwd = pwd;
            this.createDate = createDate;
            this.imei = imei;
            this.virtual = virtual;
            this.model = model;
        }

        public Boolean getVirtual() {
            return virtual;
        }

        public void setVirtual(Boolean virtual) {
            this.virtual = virtual;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getPwd() {
            return pwd;
        }

        public void setPwd(String pwd) {
            this.pwd = pwd;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getImei() {
            return imei;
        }

        public void setImei(String imei) {
            this.imei = imei;
        }

        public String getModel() {
            return model;
        }

        public void setModel(String model) {
            this.model = model;
        }
    }

}
